How to block access to websites on a linux box [closed]
Posted
by
user364952
on Server Fault
See other posts from Server Fault
or by user364952
Published on 2012-04-01T00:50:45Z
Indexed on
2012/04/01
5:31 UTC
Read the original article
Hit count: 464
linux
|hosts-file
I'm just curious how many ways people can come up with to block access to a website.
I simply intended to block (my own) access to news.ycombinator.com to stop my productivity drain. The first two methods I thought of were editing the hosts file to resolve news.ycombinator.com to 0.0.0.0 or adding a rule to iptables.
iptables -A OUTPUT -d news.ycombinator.com -j REJECT
Disclaimer: I do realise that the above two methods are easily by-passable. Doesn't help this is my own machine.
What other ways does the internet know?
© Server Fault or respective owner